import request from "../utils/request";

const prefix='/resource-service/resource/'

export function getResource(param){
    return request({
        url:prefix.concat('get'),
        method:'get',
        params:param
    })
}


export function pageResource(param){
    return request({
        url:prefix.concat('page'),
        method:'get',
        params:param
    })
}

export function saveResource(param){
    return request({
        url:prefix.concat('save'),
        method:'post',
        data:param
    })
}

export function updateResource(param){
    return request({
        url:prefix.concat('update'),
        method:'post',
        data:param
    })
}
export function deleteResource(param){
    return request({
        url:prefix.concat('delete'),
        method:'post',
        data: param
    })
}
